import http from "./http.js";

const api = {

	//社区团购

	// 获取分类
	getCate: params => http.post('team/getCate', params, true, false),
	//附近自提点铺列表
	getTeamList: params => http.post('team/getTeamList', params, true, false),
	//获取商品列表
	getProductList: params => http.post('team/getProductList', params, true, false),
	//获取推荐模块
	getRecommend: params => http.post('team/getRecommend', params, true, false),
	//获取商品详情
	getProductDetail: params => http.post('team/getProductDetail', params, true, false),
	//获取商品评价
	getShopComment: params => http.post('team/getShopComment', params, true, false),
	//生鲜下单
	createOrder: params => http.post('team/createOrder', params, true, false),
	//获取订单支付信息
	getPayInfo: params => http.post('team/getPayInfo', params, true, false),
	//小程序支付
	weiXinPay: params => http.post('team/miniUnifiedOrder', params, true, false),
	//订单详情
	getOrderDetail: params => http.post('team/getOrderDetail', params, true, false),
	//确认收货
	sureDeliver: params => http.post('team/sureDeliver', params, true, false),
	//删除订单 
	delDeliver: params => http.post('team/delDeliver', params, true, false),
	//评价订单
	commentOrder: params => http.post('team/commentOrder', params, true, false),
	//取消订单
	cancelDeliver: params => http.post('team/cancelDeliver', params, true, false),
	//获取我的订单
	getUserOrderList: params => http.post('team/getUserOrderList', params, true, false),
	//申请退款 
	applyRefund: params => http.post('team/applyRefund', params, true, false),
	//团长申请入驻
	applyGrouper: params => http.post('team/apply', params, true, false),
	//获取团长信息 
	getTeamInfo: params => http.post('team/getTeamInfo', params, true, false),
	//团长提现 
	withdraw: params => http.post('team/withdraw', params, true, false),
	//获取团长信息 
	getTeamOrderList: params => http.post('team/getTeamOrderList', params, true, false),
	//获取团长流水 
	getGrouperBillList: params => http.post('team/getBillList', params, true, false),
	//团长提现记录
	getWithdrawList: params => http.post('team/getWithdrawList', params, true, false),
	//社区团购余额支付
	balancePay: params => http.post('team/balancePay', params, true, false),
	//团购订单数量 
	getTeamOrderNum: params => http.post('team/getOrderNum', params, true, false),
	//可用优惠券列表
	getCoupon: params => http.post('team/getCoupon', params, true, false),
	//获取社区团购是否是新人
	checkNew: params => http.post('team/checkNew', params, true, false),
	//领取优惠券 
	getTeamTicket: params => http.post('team/getTicket', params, true, false),
	//获取商品详情推荐商品
	getTeamRecommend: params => http.post('team/getTeamRecommend', params, true, false),

	//获取抽奖配置 
	getDrawConfig: params => http.post('team/getDrawConfig', params, true, false),
	//抽奖
	drawPrize: params => http.post('team/draw', params, true, false),
	//领取奖品-选择收货地址
	addAddress: params => http.post('team/addAddress', params, true, false),
	//获取中奖记录
	getDrawRecord: params => http.post('team/getDrawRecord', params, true, false),
	//检查加入购物车是否超出特价种类限制
	checkBuyLimit: params => http.post('team/checkBuyLimit', params, true, false),
	//检查加入购物车是否超出特价数量限制
	checkBuyNumLimit: params => http.post('team/checkBuyNumLimit', params, true, false),

	//一日游
	//景区列表
	getTourList: params => http.post('tour/getTourList', params, true, false),
	//景区详情
	getTourDetail: params => http.post('tour/getTourDetail', params, true, false),
	//一日游下单
	createTourOrder: params => http.post('tour/createOrder', params, true, false),
	//一日游余额支付
	balancePayTour: params => http.post('tour/balancePay', params, true, false),
	//小程序支付
	miniUnifiedOrder: params => http.post('tour/miniUnifiedOrder', params, true, false),
	//一日游获取我的订单
	getMyTourOrder: params => http.post('tour/getMyOrder', params, true, false),
	//一日游取消订单
	cancelTourDeliver: params => http.post('tour/cancelDeliver', params, true, false),
	//一日游评价订单
	commentTourOrder: params => http.post('tour/commentOrder', params, true, false),
	//一日游删除订单
	delTourDeliver: params => http.post('tour/delDeliver', params, true, false),
	//一日游订单详情
	getTourOrderDetail: params => http.post('tour/getOrderDetail', params, true, false),
	//一日游获取订单支付信息
	getTourPayInfo: params => http.post('tour/getPayInfo', params, true, false),
	//一日游订单数量
	getTourOrderNum: params => http.post('tour/getOrderNum', params, true, false),
	//一日游评价列表
	getTourComment: params => http.post('tour/getComment', params, true, false),
	//获取一日遊入口名称，图片
	getTourImage: params => http.post('tour/getTourImage', params, true, false),
	//获取推荐模块
	getTourRecommend: params => http.post('tour/getRecommend', params, true, false),
	//待使用订单获取二维码
	getCheckStr: params => http.post('tour/getCheckStr', params, true, false),


	// 获取文档
	document: params => http.post('common/document', params, true, false),
	// 获取七牛云上传token
	getQiniuToken: params => http.post('common/getQiniuToken', params, true, false),
	//获取验证码 
	getSmsCode: params => http.post('member/sendSms', params, true, false),
	//授权登录绑定手机号
	bindPhoneLogin: params => http.post('member/bindPhone', params, true, false),
	//获取用户信息 
	getMemberInfo: params => http.post('member/getMemberInfo', params, true, false),
	//获取热搜词 
	getHotWord: params => http.post('common/getHotWord', params, true, false),
	//加入购物车
	addCart: params => http.post('cart/add', params, true, false),




	//用户相关接口
	//1.意见反馈
	suggestion: params => http.post('member/suggestion', params, true, false),
	//2.系统消息列表
	getMessageList: params => http.post('member/getMessageList', params, true, false),
	//3.设置系统消息为已读 
	readMsg: params => http.post('member/readMsg', params, true, false),
	//4.未读系统消息数量
	unReadMsg: params => http.post('member/unReadMsg', params, true, false),
	//5.删除系统消息
	delMsg: params => http.post('member/delMsg', params, true, false),
	//6.领取优惠券
	getTicket: params => http.post('member/getTicket', params, true, false),
	//7.我的优惠券列表
	getMyCoupon: params => http.post('member/getMyCoupon', params, true, false),
	//8.修改用户信息
	editMemberInfo: params => http.post('member/editMemberInfo', params, true, false),
	//8.注销用户 
	delMember: params => http.post('member/delMember', params, true, false),
	//8.签到日历 
	getSignCal: params => http.post('member/getSignCal', params, true, false),
	//8.签到
	sign: params => http.post('member/sign', params, true, false),
	//9.平台客服电话
	getServiceTel: params => http.post('member/getServiceTel', params, true, false),
	//10.充值
	recharge: params => http.post('member/recharge', params, true, false),
	//11.获取流水记录
	getBillList: params => http.post('member/getBillList', params, true, false),
	//12.微信授权登录
	wxLogin: params => http.post('member/miniLogin', params, true, false),
	//13.支付密码设置
	resetPayPwd: params => http.post('member/resetPayPwd', params, true, false),

	//获取金币流水记录
	getCoinBillList: params => http.post('member/getCoinBillList', params, true, false),
	//金币充值
	rechargeCoin: params => http.post('member/rechargeCoin', params, true, false),
	//获取手机号
	miniPhoneLogin: params => http.post('member/miniPhoneLogin', params, true, false),
	// /member/miniPhoneLogin

	//积分商城

	//积分收支明细
	getScoreRecord: params => http.post('score/getScoreRecord', params, true, false),
	//商城分类列表
	getCategory: params => http.post('score/getCategory', params, true, false),
	//商品列表
	getProList: params => http.post('score/getProList', params, true, false),
	//商品详情
	proDetail: params => http.post('score/proDetail', params, true, false),
	//兑换商品 
	convertPro: params => http.post('score/convertPro', params, true, false),
	//兑换记录
	getConvertList: params => http.post('score/getConvertList', params, true, false),
	//查看物流
	searchExpress: params => http.post('score/searchExpress', params, true, false),


	//收货地址

	//获取收货地址
	getMyAddress: params => http.post('address/getMyAddress', params, true, false),
	//添加地址
	addAddr: params => http.post('address/addAddr', params, true, false),
	//编辑地址
	editAddr: params => http.post('address/editAddr', params, true, false),
	//删除地址
	delAddr: params => http.post('address/delAddr', params, true, false),

	//发票

	//添加开票信息
	addInvoiceHead: params => http.post('invoice/addInvoiceHead', params, true, false),
	//开票信息列表
	getInvoiceHeadList: params => http.post('invoice/getInvoiceHeadList', params, true, false),
	//编辑开票信息
	editInvoiceHead: params => http.post('invoice/editInvoiceHead', params, true, false),
	//删除开票信息
	delInvoiceHead: params => http.post('invoice/delInvoiceHead', params, true, false),
	//获取可开票订单列表
	getInvoiceOrderList: params => http.post('invoice/getOrderList', params, true, false),
	//申请开票
	applyInvoice: params => http.post('invoice/applyInvoice', params, true, false),
	//开票记录列表
	getInvoiceList: params => http.post('invoice/getInvoiceList', params, true, false),


	//土地认养
	//获取banner
	getBanner: params => http.post('farm/getBanner', params, true, false),
	//获取商品列表
	getGroProductList: params => http.post('farm/getProductList', params, true, false),
	//获取商品详情
	getGroProductDetail: params => http.post('farm/getProductDetail', params, true, false),
	//预下单
	buyItNow: params => http.post('farm/buyItNow', params, true, false),
	//下单
	createGroOrder: params => http.post('farm/createOrder', params, true, false),
	//微信支付宝下单
	unifiedOrder: params => http.post('farm/UnifiedOrder', params, true, false),
	//余额支付
	balanceGroPay: params => http.post('farm/balancePay', params, true, false),
	//小程序支付
	miniGroUnifiedOrder: params => http.post('farm/miniUnifiedOrder', params, true, false),
	//认养记录
	getAdoptOrderList: params => http.post('farm/getOrderList', params, true, false),
	//认养记录详情
	getAdoptOrderDetail: params => http.post('farm/getOrderDetail', params, true, false),
	//新增种子
	addSeed: params => http.post('farm/addSeed', params, true, false),
}


export default api;